#ifndef HPLC_QINFINE_PARSEPACKET_H
#define HPLC_QINFINE_PARSEPACKET_H

#include "baseparsepacket.h"
#include "hplcqinfinesendcommonpacket.h"
#include "modulehplcdefine.h"

namespace hplc
{
namespace qinfine
{

class HplcQinfineProtocolCommonData;
class HplcQinfineParseCommonPacket : public ::BaseParsePacket
{
    Q_OBJECT
public:
    HplcQinfineParseCommonPacket(HplcQinfineProtocolCommonData &data, hplc::CommonParam &param, QObject *parent = nullptr);
    virtual ~HplcQinfineParseCommonPacket() override;

    virtual void parse() override;

    virtual void parseSet(quint8 pfc, char *data);
    virtual void parseGet(quint8 pfc, char *data);

    HplcQinfineSendCommonPacket *getSender();

protected:
    hplc::CommonParam			*m_param = nullptr;
};

} // qinfine
} // hplc

#endif // HPL_QINFINE_CPARSEPACKET_H
